package joodle.ui;

import static joodle.si.ResourceManager.message;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import joodle.ui.JoodleFrame.JoodlePanel;

@SuppressWarnings("serial")
public class ToolbarAction extends AbstractAction {
	
	private JoodlePanel jdPanel;
	
	public ToolbarAction(JoodlePanel jdPanel) {
		super(message("ToolsBar"));
		this.jdPanel = jdPanel;
	}
		@Override
		public void actionPerformed(ActionEvent e) {
			jdPanel.toggleToolBarVisibility();
			jdPanel.revalidate();
			jdPanel.repaint();
		}

}
